﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PlaceOrder_Core.PlaceOrderModels;

[Table("tsinfo")]
public partial class Tsinfo
{
    [Column("tscode")]
    public string Tscode { get; set; } = null!;

    [Column("startdate")]
    public DateOnly Startdate { get; set; }

    [Column("bondkey")]
    public string Bondkey { get; set; } = null!;

    [Column("lastdaycrawled")]
    public DateOnly? Lastdaycrawled { get; set; }

    [Column("bondname")]
    public string Bondname { get; set; } = null!;

    [Column("listedmarket")]
    public string? Listedmarket { get; set; }

    [Column("bondrating")]
    public string? Bondrating { get; set; }

    [Column("deleted")]
    public bool? Deleted { get; set; }

    [Column("issuerate")]
    public string? Issuerate { get; set; }

    [Column("issueamount")]
    public string? Issueamount { get; set; }

    [Column("issueprice")]
    public string? Issueprice { get; set; }

    [Column("maturity")]
    public string? Maturity { get; set; }

    [Column("maturitydate")]
    public DateOnly? Maturitydate { get; set; }

    [Column("bondfullname")]
    public string? Bondfullname { get; set; }

    [Column("realtime")]
    public bool? Realtime { get; set; }

    [Column("interestperyear")]
    public short? Interestperyear { get; set; }

    [Column("lastdaycrawledtime")]
    public DateTime? Lastdaycrawledtime { get; set; }

    [Column("qbdate")]
    public DateOnly? Qbdate { get; set; }

    [Column("firsttradedate")]
    public DateOnly? Firsttradedate { get; set; }

    [Column("intereststartdate")]
    public DateOnly? Intereststartdate { get; set; }

    [Key]
    [Column("id")]
    public int Id { get; set; }

    [Column("poolid")]
    public short? Poolid { get; set; }

    [Column("basicvalue")]
    public decimal? Basicvalue { get; set; }

    [Column("hengsheng_id")]
    public string? HengshengId { get; set; }

    [Column("hengsheng_name")]
    public string? HengshengName { get; set; }
}
